package fr.afcepf.atod16.groupe1.projet1.dto.catalogue;

import fr.afcepf.atod16.groupe1.projet1.dto.Dto;

/**
 * Le DTO TVA
 * @author cedric
 */
public class DtoTVA implements Dto {

    private Integer id;
    private Integer taux;

    public DtoTVA() {
    }

    public DtoTVA(Integer id, Integer taux) {
        this.id = id;
        this.taux = taux;
    }

    @Override
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaux() {
        return taux;
    }

    public void setTaux(Integer taux) {
        this.taux = taux;
    }

    @Override
    public String toString() {
        return "DtoTVA{" + "id=" + id + ", taux=" + taux + '}';
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.id != null ? this.id.hashCode() : 0);
        hash = 97 * hash + (this.taux != null ? this.taux.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final DtoTVA other = (DtoTVA) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if (this.taux != other.taux && (this.taux == null || !this.taux.equals(other.taux))) {
            return false;
        }
        return true;
    }
}
